package com.hq.fxh.No3_TuiGuang.MyMoBan.Activity.item;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.hq.fxh.No3_TuiGuang.MyMoBan.Model.TempletSource;
import com.hq.fxh.R;
import com.hq.fxh.Utils.GlideUtils;


/**
 * @author 大圣
 * @ClassName LocalTemplateItem
 * @Description :
 * @Created 2016/4/8 0008
 * @Email qwqe601660957@163.com
 */
public class LocalTemplateItem implements IAdapterItem<TempletSource> {
    private ImageView ivPic;
    @Override
    public int getLayoutResId() {
        return R.layout.item_local_templete;
    }

    @Override
    public void onBindViews(View root) {
        ivPic = (ImageView) root.findViewById(R.id.ivPic);
    }

    @Override
    public void onSetViews(Context context) {

    }

    @Override
    public void onUpdateViews(Context context, TempletSource model, int position) {

     //   ImageLoader.getInstance().load(context,ivPic,model.getTempletUrl());
        GlideUtils.loadImageView(context, model.getTempletUrl(), ivPic);

    }
}
